package com.ygnn.common.Dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.Date;
import org.springframework.stereotype.Component;



/**
 * ClassName:OrderDto
 * Package:com.ygnn.common.Dto
 * Description:
 *
 * @Author: dlh
 * @Creat:2024/10/8-22:28
 */
@Data
@Component
@ApiModel("请求")
public class OrderDto {
    @ApiModelProperty(value = "订单id", example = "我后端生成")
    private Long orderId;
    @ApiModelProperty("openid")
    private String openid;

    @ApiModelProperty(value = "乐跑id", required = true, example = "12345678")
    private int userId;

    @ApiModelProperty(value = "乐跑次数", required = true, example = "5")
    private int times;

    @ApiModelProperty(value = "乐跑km数", required = true, example = "3")
    private int km;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("乐跑开始时间")
    private Date startDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("乐跑到期时间")
    private Date endDate;

    @ApiModelProperty("金额")
    private Integer amount;
    @ApiModelProperty("订单状态")
    private Integer status;

}
